
using System.Collections.Generic;
using EasyPhysic.Collider;
using EasyPhysic.Manager;
using UnityEngine;

public class test : MonoBehaviour
{
    private PhysicSystem System;
    List<ColliderWrapper> Colliders = new List<ColliderWrapper>();
    // Start is called before the first frame update
    void Start()
    {
        System = new PhysicSystem();
        for (int i = 0; i < PhysicGroup.MaxCount; i++)
        {
            var collider= VirtualCollider.Creat<VirtualCollider>();
            Colliders.Add(collider);
            collider.GroupId = 1;
            System.RegisterCollider(collider);
        }
        for (int i = 0; i <  PhysicGroup.MaxCount; i++)
        {
            var collider= VirtualCollider.Creat<VirtualCollider>();
            Colliders.Add(collider);
            collider.GroupId = 2;
            System.RegisterCollider(collider);
        }
        for (int i = 0; i <  PhysicGroup.MaxCount; i++)
        {
            var collider= VirtualCollider.Creat<VirtualCollider>();
            Colliders.Add(collider);
            collider.GroupId = 3;
            System.RegisterCollider(collider);
        }
        for (int i = 0; i <  PhysicGroup.MaxCount; i++)
        {
            var collider= VirtualCollider.Creat<VirtualCollider>();
            Colliders.Add(collider);
            collider.GroupId = 4;
            System.RegisterCollider(collider);
        }
    }

    // Update is called once per frame
    void Update()
    {
        System.Update(0);
    }
}
